package org.ocelot.tunes4j.gui;

import java.util.HashMap;
import java.util.Map;

public class ColumnProperties {
	
	public enum ColumnProperty {
		WIDTH("width"), PREFERED_WIDTH("preferedWidth"), 
			MINWIDTH("minWidth"), MAXWIDTH("maxWidth");
	
		private String property = null;
			
		private ColumnProperty(String property) {
			this.property = property;
		}
	}
	
	private Map headerColumn = new HashMap();
	private String columnName;
	
	public ColumnProperties(String columnName) {
		this.columnName = columnName;
		headerColumn.put(columnName, new HashMap());
		
	}
	
	public void setPropertyAsInt(ColumnProperty property, int value){
		((Map) headerColumn.get(columnName)).put(property.toString(), value);
	}
	
	public void setPropertyAsString(String propertyName, String value){
		((Map) headerColumn.get(columnName)).put(ColumnProperty.WIDTH, value);
	}
	
}
